package com.edu.cdp.service;

import com.edu.cdp.DTO.PageDTO;
import com.edu.cdp.VO.OrderPaymentVO;
import com.edu.cdp.VO.OrderVO;
import com.edu.cdp.common.PageResult;
import com.edu.cdp.domain.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Yang Can
* @description 针对表【orders】的数据库操作Service
* @createDate 2024-06-03 14:29:02
*/
public interface OrdersService extends IService<Orders> {

    PageResult pageQuery(PageDTO pageDTO);

    List<OrderVO> getByUserId(Integer id);

    List<Orders> getByNotPaid(Integer id);

    List<Orders> getByPay(Integer id);

    List<Orders> getByTime(Integer id, String time);

    List<Orders> getByTimeInterval(String startTime, String endTime);

    OrderVO getDetails(Integer id);

    Boolean delete(Integer id);

    OrderPaymentVO getAmount(Integer orderId);

    Orders cancel(Integer id);

    Orders add(Integer id, Integer staffId);

    Orders refund(Integer id);

    List<Orders> cancelled();

    List<Orders> getByStatus(Integer id, Integer status);
}
